package org.brisling.procurement.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 采购计划模块实体类
 * @author jacksonWang
 * @since 1.0
 * @version 1.0
 * @Date 2016-4-6
 */

@Entity
@Table(name=ConstSysParam.MODULE_PROCUREMENT_PLAN)
public class ProcurementPlan extends BaseDomain implements BaseDomainInf{

	

	public void setId(Long id) {
		this.id = id;
	}
	
	private Long apply_id;
	
	private String apply_name;
	
	private Long apply_deptid;
	
	@Column(length=50)
	private String apply_deptname;
	
	
	//采购物资编码
	private String material_id;
	
	//采购物资
	private String material_name;
	
	
	
	//采购计划内容
	private String apply_content;
	
	/**
	 * 申请时间
	 */
	//填表日期
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date apply_date;
	
	//项目金额
	private Double price_plan;
	
	//采购规模(小型、中型、大型)
	private String purchase_scale;
	
	//关联流程业务信息,json格式，包含审批流程及工作方案id及bizcode
	private String relate_info;
	
	
	//计划执行状态
	@Column(length=2)
	private String status;	
	
	//启用状态
	private String is_valid;	

	//项目类型id
	private Long item_typeid;
	
	//项目类型
	@Column(length=10)
	private String item_type;
	
	
	//关联审批流程业务编号
	@Column(length=20)
	private String approval_no;
	
	//关联审批流程业务代码
	@Column(length=30)
	private String approval_bizcode;
	
	//关联审批流程业务名称
	@Column(length=30)
	private String approval_name;
	
	
	//关联工作方案业务编号
	@Column(length=20)
	private String schema_no;
	
	//关联工作方案业务代码
	@Column(length=30)
	private String schema_bizcode;
	
	//关联工作方案业务名称
	@Column(length=30)
	private String schema_name;
	
	
	//关联招标公告业务编号
	@Column(length=20)
	private String bid_no;
	
	//关联招标公告业务代码
	@Column(length=30)
	private String bid_bizcode;
	
	//关联招标公告业务名称
	@Column(length=30)
	private String bid_name;
	
	
	//关联议价结论业务编号
	@Column(length=20)
	private String bargain_no;
	
	//关联议价结论业务代码
	@Column(length=30)
	private String bargain_bizcode;
	
	//关联议价结论业务名称
	@Column(length=30)
	private String bargain_name;
	
	

	public String getIs_valid() {
		return is_valid;
	}

	public void setIs_valid(String is_valid) {
		this.is_valid = is_valid;
	}	

	public Long getItem_typeid() {
		return item_typeid;
	}

	public void setItem_typeid(Long item_typeid) {
		this.item_typeid = item_typeid;
	}

	public String getItem_type() {
		return item_type;
	}

	public void setItem_type(String item_type) {
		this.item_type = item_type;
	}

	public Long getApply_id() {
		return apply_id;
	}

	public void setApply_id(Long apply_id) {
		this.apply_id = apply_id;
	}

	public String getApply_name() {
		return apply_name;
	}

	public void setApply_name(String apply_name) {
		this.apply_name = apply_name;
	}

	public Long getApply_deptid() {
		return apply_deptid;
	}

	public void setApply_deptid(Long apply_deptid) {
		this.apply_deptid = apply_deptid;
	}

	public String getApply_deptname() {
		return apply_deptname;
	}

	public void setApply_deptname(String apply_deptname) {
		this.apply_deptname = apply_deptname;
	}

	public String getMaterial_id() {
		return material_id;
	}

	public void setMaterial_id(String material_id) {
		this.material_id = material_id;
	}



	

	public String getApply_content() {
		return apply_content;
	}

	public void setApply_content(String apply_content) {
		this.apply_content = apply_content;
	}

	public Double getPrice_plan() {
		return price_plan;
	}

	public void setPrice_plan(Double price_plan) {
		this.price_plan = price_plan;
	}

	public String getRelate_info() {
		return relate_info;
	}

	public void setRelate_info(String relate_info) {
		this.relate_info = relate_info;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getApproval_no() {
		return approval_no;
	}

	public void setApproval_no(String approval_no) {
		this.approval_no = approval_no;
	}

	public String getApproval_bizcode() {
		return approval_bizcode;
	}

	public void setApproval_bizcode(String approval_bizcode) {
		this.approval_bizcode = approval_bizcode;
	}

	public String getApproval_name() {
		return approval_name;
	}

	public void setApproval_name(String approval_name) {
		this.approval_name = approval_name;
	}

	public String getMaterial_name() {
		return material_name;
	}

	public void setMaterial_name(String material_name) {
		this.material_name = material_name;
	}

	public String getPurchase_scale() {
		return purchase_scale;
	}

	public void setPurchase_scale(String purchase_scale) {
		this.purchase_scale = purchase_scale;
	}

	/**
	 * @return the schema_no
	 */
	public String getSchema_no() {
		return schema_no;
	}

	/**
	 * @param schema_no the schema_no to set
	 */
	public void setSchema_no(String schema_no) {
		this.schema_no = schema_no;
	}

	/**
	 * @return the schema_bizcode
	 */
	public String getSchema_bizcode() {
		return schema_bizcode;
	}

	/**
	 * @param schema_bizcode the schema_bizcode to set
	 */
	public void setSchema_bizcode(String schema_bizcode) {
		this.schema_bizcode = schema_bizcode;
	}

	/**
	 * @return the schema_name
	 */
	public String getSchema_name() {
		return schema_name;
	}

	/**
	 * @param schema_name the schema_name to set
	 */
	public void setSchema_name(String schema_name) {
		this.schema_name = schema_name;
	}

	/**
	 * @return the bid_no
	 */
	public String getBid_no() {
		return bid_no;
	}

	/**
	 * @param bid_no the bid_no to set
	 */
	public void setBid_no(String bid_no) {
		this.bid_no = bid_no;
	}

	/**
	 * @return the bid_bizcode
	 */
	public String getBid_bizcode() {
		return bid_bizcode;
	}

	/**
	 * @param bid_bizcode the bid_bizcode to set
	 */
	public void setBid_bizcode(String bid_bizcode) {
		this.bid_bizcode = bid_bizcode;
	}

	/**
	 * @return the bid_name
	 */
	public String getBid_name() {
		return bid_name;
	}

	/**
	 * @param bid_name the bid_name to set
	 */
	public void setBid_name(String bid_name) {
		this.bid_name = bid_name;
	}

	/**
	 * @return the bargain_no
	 */
	public String getBargain_no() {
		return bargain_no;
	}

	/**
	 * @param bargain_no the bargain_no to set
	 */
	public void setBargain_no(String bargain_no) {
		this.bargain_no = bargain_no;
	}

	/**
	 * @return the bargain_bizcode
	 */
	public String getBargain_bizcode() {
		return bargain_bizcode;
	}

	/**
	 * @param bargain_bizcode the bargain_bizcode to set
	 */
	public void setBargain_bizcode(String bargain_bizcode) {
		this.bargain_bizcode = bargain_bizcode;
	}

	/**
	 * @return the bargain_name
	 */
	public String getBargain_name() {
		return bargain_name;
	}

	/**
	 * @param bargain_name the bargain_name to set
	 */
	public void setBargain_name(String bargain_name) {
		this.bargain_name = bargain_name;
	}

	/**
	 * @return the apply_date
	 */
	public Date getApply_date() {
		return apply_date;
	}

	/**
	 * @param apply_date the apply_date to set
	 */
	public void setApply_date(Date apply_date) {
		this.apply_date = apply_date;
	}

	
	
							
}
